home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource3 / 153_01 / writec.c < prev    next >
Encoding:
Text File  |  1985-03-11  |  896 b   |  26 lines

  1. /*                          *** writec.c ***                        */
  2. /*                                                                   */
  3. /* IBM-PC microsoft "C" under PC-DOS v2.0                            */
  4. /*                                                                   */
  5. /* Function to write a character to the screen using a DOS function. */
  6. /*                                                                   */
  7. /* Written by L. Cuthbertson, March 1984.                            */
  8. /*                                                                   */
  9. /*********************************************************************/
  10. /*                                                                   */
  11. int writec(c)
  12. char c;
  13. {
  14.     int iret,bdos();
  15.  
  16.     iret = bdos(2,c);
  17.     return (iret);
  18. }
  19. 000'
  20.  
  21. int writes(s)
  22. char s[];
  23. {
  24.     int i,writec();
  25.  
  26.     for (i=0;(s[i] != N